package com.edu.cdp.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

/**
 * 
 * @TableName user
 */
@TableName(value ="user")
@Data
public class User implements Serializable {
    /**
     * 
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "用户id")
    private Integer id;

    /**
     * 
     */
    @Schema(description = "用户名")
    private String name;

    /**
     * 
     */
    @Schema(description = "用户密码")
    private String password;

    /**
     * 
     */
    @Schema(description = "用户邮箱")
    private String email;

    /**
     * 
     */
    @Schema(description = "用户手机号，不能超过11位")
    private String phone;

    /**
     * 
     */
    @Schema(description = "性别")
    private String sex;

    /**
     * 
     */
    @Schema(description = "用户头像路径，非文件类型修改无效")
    private String avatar;

    @Schema(description = "用户积分，1元/积分，不足一元四舍五入计算")
    private Integer integral;

    @Schema(description = "账户余额")
    private Double balance;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}